import service from "../utils/service";

export function unitOgrListTree() {
  return service({
    url: `assessSquare/unitOgrListTree`,
    method: "get",
  });
}
//添加
export function addUnitOrg(data) {
  return service({
    url: `assessSquare/addUnitOrg`,
    method: "post",
    data
  });
}
//修改
export function updateUnitOrg(data) {
  return service({
    url: `/assessSquare/updateUnitOrg`,
    method: "post",
    data
  });
}
//删除
export function deleteUnitOrg(params) {
  return service({
    url: `assessSquare/deleteUnitOrg/`+params.id,
    method: "get",
    params
  });
}